<?php
echo $header;
echo $column_left;
echo $column_right;
$width_content = '98%';
if (($column_left) && ($column_right)) {
    $width_content = '48%';
} elseif (($column_left) || ($column_right)) {
    $width_content = '73%';
}
?>
<div class="content" style="width:<?php echo $width_content; ?>"><?php echo $content_top; ?>
    <div class="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
            <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
        <?php } ?>
    </div>
    <ul data-role="listview" data-divider-theme="a" data-inset="true">
        <li data-role="list-divider"><h1><?php echo $heading_title; ?></h1></li>
    </ul><br />
    <p><?php echo $text_balance; ?><b> <?php echo $balance; ?></b>.</p>
    <div class="list">
        <ul data-role="listview" data-divider-theme="a" data-inset="true">
            <li data-role="list-divider">
                <div class="ui-grid-b">
                    <div class="ui-block-a"><?php echo $column_date_added; ?></div>
                    <div class="ui-block-b"><?php echo $column_description; ?></div>
                    <div class="ui-block-c"><?php echo $column_amount; ?></div>
                </div>
            </li>
            <?php if ($transactions) { ?>
                <?php foreach ($transactions as $transaction) { ?>
                    <li>
                        <div class="ui-grid-b">
                            <div class="left ui-block-a"><?php echo $transaction['date_added']; ?></div>
                            <div class="left ui-block-b"><?php echo $transaction['description']; ?></div>
                            <div class="right ui-block-c"><?php echo $transaction['amount']; ?></div>
                        </div>
                    </li>
                <?php } ?>
            <?php } else { ?>
                <li class="center"><?php echo $text_empty; ?></li>
            <?php } ?>
        </ul>
    </div><br />
    <div class="pagination"><?php echo $pagination; ?></div>
    <div class="buttons">
        <div class="right"><a data-role="button" href="<?php echo $continue; ?>" class="button"><span><?php echo $button_continue; ?></span></a></div>
    </div>
    <?php echo $content_bottom; ?>
</div>
<?php echo $footer; ?>